package com.bwie.demo;

/**
 * day11
 *
 * @author LQ&LYP lq
 * @ClassName Pet
 * @description: TODO
 * @date 2025年03月05日
 * @version: 1.0
 */
public class Pet  {
    private     String  name;
    private    int   age;

    public Pet() {
    }

    public Pet(String name, int age) {
        this.name = name;
        this.age = age;
    }


    protected    void  eat(){

    }

    public   void  drink(){

    }

    public   void  shout(){

    }

    /**
     * 获取
     * @return name
     */
    public String getName() {
        return name;
    }

    /**
     * 设置
     * @param name
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * 获取
     * @return age
     */
    public int getAge() {
        return age;
    }

    /**
     * 设置
     * @param age
     */
    public void setAge(int age) {
        this.age = age;
    }
     @Override
    public String toString() {
        return "Pet{name = " + name + ", age = " + age + "}";
    }
}
